package com.weiform;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.weifly.data.ListData;

public class GridForm {

	public Object loadGridData(HttpServletRequest req,HttpServletResponse resp){
		ListData data = new ListData();
		data.setTotalCount(50);
		for(int i=0;i<10;i++){
			Map<String,String> rec = new HashMap<String,String>();
			rec.put("col1", "cal1_"+i);
			rec.put("col2", "cal2_"+i);
			rec.put("col3", "col3_"+i);
			data.addRecord(rec);
		}
		return data;
	}
}
